package com.example.leetcode.matrix;

import com.example.leetcode.matrix.common.MatrixUtils;

class Solution6342 {
    public int firstCompleteIndex(int[] arr, int[][] mat) {
        return MatrixUtils.firstCompleteIndex(arr, mat);
    }
}

public class leetcode6342 {
    public static void main(String[] args) {
        Solution6342 solution6342 = new Solution6342();
        int[] arr = {1, 3, 4, 2};
        int[][] mat = {{1, 4}, {2, 3}};
        System.out.println(solution6342.firstCompleteIndex(arr, mat));

        int[] arr1 = {2, 8, 7, 4, 1, 3, 5, 6, 9};
        int[][] mat1 = {{3, 2, 5}, {1, 4, 6}, {8, 7, 9}};
        System.out.println(solution6342.firstCompleteIndex(arr1, mat1));
    }
}
